public class ToDoItem {
    public String title { get; set; }
    public Date dueDate { get; set; }
    public String assignedTo { get; set; }
    public String link { get; set; }
    public String linkAtom { get; set; }
    public DateTime published { get; set; }
    public DateTime updated { get; set; }
    public String atomId { get; set; }
    
    public ToDoItem(Entry todo) {
        System.debug(LoggingLevel.INFO, '\n\nTODO CONSTRUCTOR: ' + todo + '\n\n');
        this.title = todo.title.value;
        if (todo.extensions.containsKey('duedate')) {
            this.dueDate = Date.valueOf(todo.extensions.get('duedate').value.replace('T', ' '));
        }
        this.published = todo.getPublished();
        this.updated = todo.getUpdated();
        this.atomId = todo.getId();
        this.assignedTo = todo.extensions.get('assignedto').attributes.get('name');
        for (Link l : todo.getLinks('alternate')) {
            if (l.ltype == 'text/html') {
                link = l.href;
            } else {
                linkAtom = l.href;
            }
        }
    }
}